'use strict'

const fs=require('fs')

function getFiles(filePath) {
    let tmpPath=filePath || __dirname;
    let files=fs.readdirSync(tmpPath);
    let folder=files.filter(item => {
        return item.endsWith('.js') && item !== 'index.js';
    });

    return folder;
}

module.exports=getFiles;